import json

dict_data = {
    "name":"lilli",
    "age":20,
    "address":"guangdong"
}

with open('data_json02.json','w',encoding='utf-8') as f:
    json.dump(dict_data,f,ensure_ascii=False)